package com.sky.loveshop.api;

import com.sky.loveshop.entity.meiTuan.MtOrderCreateResponse;
import com.sky.loveshop.entity.meiTuan.MtOrderPullDeliverRecordsResponse;
import com.sky.loveshop.entity.meiTuan.MtOrderPullResponse;
import com.sky.loveshop.entity.meiTuan.MtStoreCreateResponse;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xcy
 * @version V1.0
 * @description 外送帮Api
 * @date 2024/9/11 21:40
 */
public interface MeiTuanApi {

    @RequestLine("POST /store/create")
    @Headers({"Content-Type: application/json"})
    MtStoreCreateResponse createStore(@RequestBody MeiTuanOrderRequest.CreateStoreRequest request);

    @RequestLine("POST /order/create")
    @Headers({"Content-Type: application/json"})
    MtOrderCreateResponse createOrder(@RequestBody MeiTuanOrderRequest.CreateOrderRequest request);

    @RequestLine("POST /order/list")
    @Headers({"Content-Type: application/json"})
    MtOrderPullResponse pullOrderList(@RequestBody MeiTuanOrderRequest.PullOrderRequest request);

    @RequestLine("POST /deliver/records/{platform_order_id}")
    @Headers({"Content-Type: application/json"})
    MtOrderPullDeliverRecordsResponse pullDeliverRecords(@Param("platform_order_id") String platformOrderId, @RequestBody MeiTuanOrderRequest.PullDeliverRecordsRequest request);

}
